$OpenBSD: patch-setup_py,v 1.2 2009/12/31 12:34:45 eric Exp $
--- setup.py.orig	Tue Dec  8 08:32:23 2009
+++ setup.py	Tue Dec  8 09:06:21 2009
@@ -9,7 +9,7 @@ except ImportError:
 
 import os
 data_files=[]
-for (dirpath, dirnames, filenames) in os.walk("doc"):
+for (dirpath, dirnames, filenames) in os.walk("py-nevow"):
     if ".svn" in dirnames:
         del dirnames[dirnames.index(".svn")]
     thesedocs = []
@@ -17,8 +17,6 @@ for (dirpath, dirnames, filenames) in os.walk("doc"):
         thesedocs.append(os.path.join(dirpath, fname))
     data_files.append((dirpath, thesedocs))
 
-data_files.append((os.path.join('twisted', 'plugins'), [os.path.join('twisted', 'plugins', 'nevow_widget.py')]))
-
 setupdict = {
     'name': 'Nevow', 
     'version': version,
@@ -88,6 +86,7 @@ if setuptools:
     from setuptools import setup, find_packages
 
     setupdict['packages'] = find_packages()
+    setupdict['packages'].append("twisted.plugins")
     setupdict['include_package_data'] = True
 else:
     # No setuptools -- decide where the data files should go and explicitly list
